package main

import (
	"path/filepath"
	"fmt"
	"os"
	"log"
)

func main() {
	vol := filepath.VolumeName("F:\\Go_Work\\src\\main")
	fmt.Println(vol)
	filepath.Walk("D:\\", func(path string, info os.FileInfo, err error) error {
		ext := filepath.Ext(path)
		if ext == ".jpg" || ext == ".jpeg" {
            fmt.Println(path)
		}
		if err != nil {
			return err
		}
		return nil
	})

	fileInfo, err := os.Stat("D:\\Desert.jpg")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(fileInfo.Size()/1024)
}